package com.keyingbo.concurrent.homework01;

import java.util.List;

/**
 * @Auther: KEYB
 * @Date: 2019-5-28 14:11
 * @Description:
 */
public class Menu {
    private int id;
    private String name;
    private String code;
    private int level;
    private List<Menu>  ChildMenuList;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public List<Menu> getChildMenuList() {
        return ChildMenuList;
    }

    public void setChildMenuList(List<Menu> childMenuList) {
        ChildMenuList = childMenuList;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    @Override
    public String toString() {
        return "Menu{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", code='" + code + '\'' +
                ", level=" + level +
                ", ChildMenuList=" + ChildMenuList +
                '}';
    }
}
